package com.neusoft.ruangong.util;

import com.neusoft.ruangong.other.utils.R;

import java.sql.Time;
import java.util.Calendar;
import java.util.Date;

/**
 * @ClassName:
 * @Description:
 * @version: v1.1.0
 * @author: shuaiqin
 * @date: 2021/9/1-20:46
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ------------------------------------------------------------
 * 2021/9/1          shuaiqin          v1.1.0               修改原因
 */
public class TimeUtil {
    public static void main(String[] args) {
        Time time = new Time(1023223120);
        Time time1 = new Time(1032223434);
        System.out.println("time = " + time);
        System.out.println("time = " + time1);
        long m = time.getTime();
        long m2 = time1.getTime();
        System.out.println(m<m2);
    }
    public static Date addDayOfDate(Date date,int i){
        Calendar c = Calendar.getInstance();
        c.setTime(date);
        c.add(Calendar.DATE, i);
        Date newDate = c.getTime();
        return newDate;
    }
}
